<?php
error_reporting(0);
require('../database/db.php');
$mysql=new mysql();

$sql = "select goodsNum,freightRisk from freightrisk";
$freightRisk = array();
$freightRisk = $mysql->getAll($sql);

$arr = array('code' => 100, 'freightRisk' => $freightRisk, 'tip' => '查询成功');

echo json_encode($arr);